package com.asiainfo.demo.dao.idao;

import com.asiainfo.demo.dao.roles.Card;

import java.sql.SQLException;
import java.util.ArrayList;

public interface iCard {
    boolean insertCard(Card card) throws Exception;

    int findMaxCardID() throws Exception;
    Card findCardByID(int cardID) throws Exception;
    ArrayList<Card> findAllCards() throws Exception;

    boolean changeValid(int cardID, byte newStatus) throws Exception;
    boolean changeType(int cardID, byte newType) throws Exception;
}
